/*Domain class of table s_customer_feedback*/
package com.mycollab.common.domain;

import com.mycollab.core.arguments.ValuedBean;
import com.mycollab.db.metadata.Column;
import com.mycollab.db.metadata.Table;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

@SuppressWarnings("ucd")
@Table("s_customer_feedback")
@Alias("CustomerFeedback")
class CustomerFeedback extends ValuedBean {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column s_customer_feedback.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @Column("id")
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column s_customer_feedback.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @NotNull
    @Column("sAccountId")
    private Integer saccountid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column s_customer_feedback.username
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @NotEmpty
    @Length(max=45, message="Field value is too long")
    @Column("username")
    private String username;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column s_customer_feedback.leaveType
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @Column("leaveType")
    private Integer leavetype;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column s_customer_feedback.otherTool
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    @Length(max=400, message="Field value is too long")
    @Column("otherTool")
    private String othertool;

    private static final long serialVersionUID = 1;

    public final boolean equals(Object obj) {
        if (obj == null) { return false;}
        if (obj == this) { return true;}
        if (!obj.getClass().isAssignableFrom(getClass())) { return false;}
        CustomerFeedback item = (CustomerFeedback)obj;
        return new EqualsBuilder().append(id, item.id).build();
    }

    public final int hashCode() {
        return new HashCodeBuilder(1191, 391).append(id).build();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column s_customer_feedback.id
     *
     * @return the value of s_customer_feedback.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table s_customer_feedback
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public CustomerFeedback withId(Integer id) {
        this.setId(id);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column s_customer_feedback.id
     *
     * @param id the value for s_customer_feedback.id
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column s_customer_feedback.sAccountId
     *
     * @return the value of s_customer_feedback.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Integer getSaccountid() {
        return saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table s_customer_feedback
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public CustomerFeedback withSaccountid(Integer saccountid) {
        this.setSaccountid(saccountid);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column s_customer_feedback.sAccountId
     *
     * @param saccountid the value for s_customer_feedback.sAccountId
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setSaccountid(Integer saccountid) {
        this.saccountid = saccountid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column s_customer_feedback.username
     *
     * @return the value of s_customer_feedback.username
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public String getUsername() {
        return username;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table s_customer_feedback
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public CustomerFeedback withUsername(String username) {
        this.setUsername(username);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column s_customer_feedback.username
     *
     * @param username the value for s_customer_feedback.username
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column s_customer_feedback.leaveType
     *
     * @return the value of s_customer_feedback.leaveType
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public Integer getLeavetype() {
        return leavetype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table s_customer_feedback
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public CustomerFeedback withLeavetype(Integer leavetype) {
        this.setLeavetype(leavetype);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column s_customer_feedback.leaveType
     *
     * @param leavetype the value for s_customer_feedback.leaveType
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setLeavetype(Integer leavetype) {
        this.leavetype = leavetype;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column s_customer_feedback.otherTool
     *
     * @return the value of s_customer_feedback.otherTool
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public String getOthertool() {
        return othertool;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table s_customer_feedback
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public CustomerFeedback withOthertool(String othertool) {
        this.setOthertool(othertool);
        return this;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column s_customer_feedback.otherTool
     *
     * @param othertool the value for s_customer_feedback.otherTool
     *
     * @mbg.generated Sat Feb 09 11:42:26 CST 2019
     */
    public void setOthertool(String othertool) {
        this.othertool = othertool;
    }
}